msgData = {}
onceKey = ['loginInfo']
@.msg = (key,val=null)->
	if val==null
		if key in onceKey and typeof msgData[key] != 'undefined'
			delete msgData[key]
		return msgData[key]
	else
		msgData[key] = val
#转发信息
chrome.extension.onRequest.addListener( (request, sender, sendResponse)->
	ret = {}#等待发送的数据
	finded = off #是否有数据要发送
	if request
		for key of request
			if typeof msgData[key] != 'undefined'
				ret[key] = msgData[key]
				finded = on
				if key in onceKey
					delete msgData[key]
	if finded
		sendResponse ret


)


#不使用代理
noProxy()
